using System.Text.RegularExpressions;

namespace CSharpPro._1028;

public class User
{
    private string name;
    private string pwd;

    public User()
    {
    }

    public User(string name, string pwd)
    {
        this.name = name;
        this.pwd = pwd;
    }

    public string Name
    {
        get => name;
        set => name = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string Pwd
    {
        get => pwd;
        set => pwd = value ?? throw new ArgumentNullException(nameof(value));
    }
}